

package com.maoshi.shop.groupbuy.comment.api.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.maoshi.shop.common.serializer.json.ImgJsonSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author 小懒虫
 * @date 2019/8/30 10:25
 */
@Data
public class ApiGroupSkuDto {

    @ApiModelProperty("拼团活动商品规格id")
    private Long groupSkuId;

    @ApiModelProperty(value = "商品规格Id")
    private Long skuId;

    @ApiModelProperty(value = "原售价格")
    private Double price;

    @ApiModelProperty(value = "活动价格")
    private Double actPrice;

    @ApiModelProperty(value = "团长价格")
    private Double leaderPrice;

    @ApiModelProperty(value = "sku名称")
    private String skuName;

    @JsonSerialize(using = ImgJsonSerializer.class)
    @ApiModelProperty(value = "sku图片")
    private String pic;

    @ApiModelProperty(value = "销售属性组合字符串 格式是p1:v1;p2:v2")
    private String properties;
}
